package com.geostar.constructionland.common.entity.statistics;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author yelll
 * @since 2020-7-14 10:33
 **/
@Data
@TableName("log_statistics")
@ApiModel("执行记录表")
@Accessors(chain = true)
public class LogStatistics {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty("id")
    private String id;

    @TableField(value = "ywid")
    @ApiModelProperty("业务ID")
    private String ywid;

    @TableField(value = "fxlx")
    @ApiModelProperty("分析类型")
    private String fxlx;

    @TableField(value = "profile_id")
    @ApiModelProperty("分析类型id")
    private String profileId;

    @TableField("execute_queue")
    @ApiModelProperty("执行队列")
    private String executeQueue;

    @TableField("result_queue")
    @ApiModelProperty("结果队列")
    private String resultQueue;

    @TableField("cost_time_queue")
    @ApiModelProperty("查询时耗")
    private String costTimeQueue;

    @TableField("result")
    @ApiModelProperty("执行结果")
    private String result;

    @TableField(value = "error_msg")
    @ApiModelProperty("错误信息")
    private String errorMsg;

    @TableField(value = "status")
    @ApiModelProperty("状态,0为未执行,1已经执行,2执行中")
    private String status;

    @TableField(value="modified_time")
    @ApiModelProperty("修改时间")
    private Date modifiedTime;
}
